import { API } from '../config/config';

import HTTP from '../utils/http';

const COMMON_API = API.COMMON_API;

class CommonService extends HTTP {

  async changeDataStatus (data) {
    return new Promise((resolve, reject) => {
      this.axiosPost({
        url: COMMON_API.CHANGE_DATA_STATUS,
        data: data,
        success(res){
          resolve(res);
        },
        error(error){
          alert('网络请求错误');
          window.location.reload();
        }
      })
    })
  }

 
}

export default CommonService;